//
//  TL_FeedbackQuestionChooseListTableViewCell.m
//  WXReader
//
//  Created by TSL on 2021/7/6.
//  Copyright © 2021 Andrew. All rights reserved.
//

#import "TL_FeedbackQuestionChooseListTableViewCell.h"

@implementation TL_FeedbackQuestionChooseListTableViewCell
{
    UILabel *mainTitleLabel;
}

- (void)createSubviews
{
    [super createSubviews];
    mainTitleLabel = [TL_UIFactory labelWithBackgroundColor:nil font:kMainFont textColor:kBlackColor];
    
    mainTitleLabel.numberOfLines = 0;
    [self.contentView addSubview:mainTitleLabel];
    
    [mainTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.bottom.mas_equalTo(self.contentView);
        make.left.mas_equalTo(self.contentView.mas_left).with.offset(kHalfMargin);
        make.left.mas_equalTo(self.contentView.mas_right).with.offset(- kHalfMargin);
    }];
}

- (void)setQuestionContent:(NSString *)questionContent {
    _questionContent = questionContent;
    
    mainTitleLabel.text = _questionContent;
}

@end
